import ReactDom from 'react-dom/client'
import './index.css'
import App from './App.js'
import FunElement from './Element.js'

// 创建jsx
const app = <div className='logs'>
              <div className='item'>
                <div className='date'>
                  <div className='month'>四月</div>
                  <div className='day'>19</div>
                </div>
                <div className='content'>
                  <h2 className='desc'>学习React</h2>
                  <div className='time'>40分钟</div>
                </div>
              </div>

              <div className='item'>
                <div className='date'>
                  <div className='month'>四月</div>
                  <div className='day'>19</div>
                </div>
                <div className='content'>
                  <h2 className='desc'>学习React</h2>
                  <div className='time'>40分钟</div>
                </div>
              </div>
            </div>

const root = ReactDom.createRoot(document.getElementById('root'))

root.render(<App></App>)
//root.render(<FunElement />)